/**
 * Created by xaiodoudou on 2017/6/26.
 */
function scrollMovetoTop() {
  window.scroll({ top: 0, left: 0, behavior: 'smooth' });
  $('.scroll-top').css({
    transition:'1s',
    top:'-50px'
  })
}
$('.animate').scrolla({
  mobile:false,
  once:false

})
window.onscroll=function () {
  if( document.body.scrollTop>200){
    $('.scroll-top').css({

      'display':'block'
    })
  }else{
    $('.scroll-top').css({
      'display':'none',
      transition:'0s',
      top:'600px'
    })
  }
}
function showSearchBox() {
  console.log(1)
  $(".search-box").eq(0).fadeToggle()
}
(function searchInput() {
  $('#searchCon').bind('keypress',function(event){


    if(event.keyCode == 13)

    {
      alert('你输入的内容为1：' + $('#searchCon').val());
    }

  });
})()